<?php
    include "admin_users.php";

$id=$_REQUEST['id'];
$vip=$_REQUEST['vip'];
// var_dump($id);

mysqli_select_db($conn,"shopping");

   $sql = "update users set vip='$vip' where id='$id'";  //SQL模板

   $result=mysqli_query($conn,$sql);

    if (!$result){
        echo 'vip修改失败！';
    }else{
        echo 'vip修改成功！';
    }
    
    mysqli_close($conn);
?>
